package com.spring.shops.admin.controller.menu;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
//@RequestMapping(value = "/sys/menu", produces = "application/json; charset=utf-8")
public class MenuController {
    /**
     * 获取用户所拥有的菜单和权限
     */
    @GetMapping("/nav")
    public String getMenuAndPerms(){
        return "{\n" +
                "    \"code\": \"00000\",\n" +
                "    \"msg\": null,\n" +
                "    \"data\": {\n" +
                "        \"menuList\": [\n" +
                "            {\n" +
                "                \"menuId\": 34,\n" +
                "                \"parentId\": 0,\n" +
                "                \"parentName\": null,\n" +
                "                \"name\": \"产品管理\",\n" +
                "                \"url\": \"\",\n" +
                "                \"perms\": \"\",\n" +
                "                \"type\": 0,\n" +
                "                \"icon\": \"admin\",\n" +
                "                \"orderNum\": 0,\n" +
                "                \"list\": [\n" +
                "                    {\n" +
                "                        \"menuId\": 239,\n" +
                "                        \"parentId\": 34,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"分组管理\",\n" +
                "                        \"url\": \"prod/prodTag\",\n" +
                "                        \"perms\": \"prod:prodTag\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"\",\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 70,\n" +
                "                        \"parentId\": 34,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"产品管理\",\n" +
                "                        \"url\": \"prod/prodList\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": null,\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 136,\n" +
                "                        \"parentId\": 34,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"分类管理\",\n" +
                "                        \"url\": \"prod/category\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": null,\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 306,\n" +
                "                        \"parentId\": 34,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"评论管理\",\n" +
                "                        \"url\": \"prod/prodComm\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"\",\n" +
                "                        \"orderNum\": 1,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 51,\n" +
                "                        \"parentId\": 34,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"规格管理\",\n" +
                "                        \"url\": \"prod/spec\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"\",\n" +
                "                        \"orderNum\": 2,\n" +
                "                        \"list\": null\n" +
                "                    }\n" +
                "                ]\n" +
                "            },\n" +
                "            {\n" +
                "                \"menuId\": 63,\n" +
                "                \"parentId\": 0,\n" +
                "                \"parentName\": null,\n" +
                "                \"name\": \"门店管理\",\n" +
                "                \"url\": \"\",\n" +
                "                \"perms\": \"\",\n" +
                "                \"type\": 0,\n" +
                "                \"icon\": \"store\",\n" +
                "                \"orderNum\": 0,\n" +
                "                \"list\": [\n" +
                "                    {\n" +
                "                        \"menuId\": 300,\n" +
                "                        \"parentId\": 63,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"公告管理\",\n" +
                "                        \"url\": \"shop/notice\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"\",\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 201,\n" +
                "                        \"parentId\": 63,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"热搜管理\",\n" +
                "                        \"url\": \"shop/hotSearch\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"\",\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 174,\n" +
                "                        \"parentId\": 63,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"轮播图管理\",\n" +
                "                        \"url\": \"admin/indexImg\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"\",\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 163,\n" +
                "                        \"parentId\": 63,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"运费模板\",\n" +
                "                        \"url\": \"shop/transport\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": null,\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 131,\n" +
                "                        \"parentId\": 63,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"自提点管理\",\n" +
                "                        \"url\": \"shop/pickAddr\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"\",\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    }\n" +
                "                ]\n" +
                "            },\n" +
                "            {\n" +
                "                \"menuId\": 125,\n" +
                "                \"parentId\": 0,\n" +
                "                \"parentName\": null,\n" +
                "                \"name\": \"会员管理\",\n" +
                "                \"url\": \"\",\n" +
                "                \"perms\": \"\",\n" +
                "                \"type\": 0,\n" +
                "                \"icon\": \"vip\",\n" +
                "                \"orderNum\": 0,\n" +
                "                \"list\": [\n" +
                "                    {\n" +
                "                        \"menuId\": 126,\n" +
                "                        \"parentId\": 125,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"会员管理\",\n" +
                "                        \"url\": \"user/user\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": null,\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    }\n" +
                "                ]\n" +
                "            },\n" +
                "            {\n" +
                "                \"menuId\": 91,\n" +
                "                \"parentId\": 0,\n" +
                "                \"parentName\": null,\n" +
                "                \"name\": \"订单管理\",\n" +
                "                \"url\": \"\",\n" +
                "                \"perms\": \"\",\n" +
                "                \"type\": 0,\n" +
                "                \"icon\": \"order\",\n" +
                "                \"orderNum\": 2,\n" +
                "                \"list\": [\n" +
                "                    {\n" +
                "                        \"menuId\": 92,\n" +
                "                        \"parentId\": 91,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"订单管理\",\n" +
                "                        \"url\": \"order/order\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": null,\n" +
                "                        \"orderNum\": 1,\n" +
                "                        \"list\": null\n" +
                "                    }\n" +
                "                ]\n" +
                "            },\n" +
                "            {\n" +
                "                \"menuId\": 1,\n" +
                "                \"parentId\": 0,\n" +
                "                \"parentName\": null,\n" +
                "                \"name\": \"系统管理\",\n" +
                "                \"url\": \"\",\n" +
                "                \"perms\": \"\",\n" +
                "                \"type\": 0,\n" +
                "                \"icon\": \"system\",\n" +
                "                \"orderNum\": 3,\n" +
                "                \"list\": [\n" +
                "                    {\n" +
                "                        \"menuId\": 312,\n" +
                "                        \"parentId\": 1,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"地址管理\",\n" +
                "                        \"url\": \"sys/area\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"dangdifill\",\n" +
                "                        \"orderNum\": 0,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 2,\n" +
                "                        \"parentId\": 1,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"管理员列表\",\n" +
                "                        \"url\": \"sys/user\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"admin\",\n" +
                "                        \"orderNum\": 1,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 3,\n" +
                "                        \"parentId\": 1,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"角色管理\",\n" +
                "                        \"url\": \"sys/role\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"role\",\n" +
                "                        \"orderNum\": 2,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 4,\n" +
                "                        \"parentId\": 1,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"菜单管理\",\n" +
                "                        \"url\": \"sys/menu\",\n" +
                "                        \"perms\": \"\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"menu\",\n" +
                "                        \"orderNum\": 3,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 27,\n" +
                "                        \"parentId\": 1,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"参数管理\",\n" +
                "                        \"url\": \"sys/config\",\n" +
                "                        \"perms\": \"sys:config:page,sys:config:info,sys:config:save,sys:config:update,sys:config:delete\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"config\",\n" +
                "                        \"orderNum\": 6,\n" +
                "                        \"list\": null\n" +
                "                    },\n" +
                "                    {\n" +
                "                        \"menuId\": 29,\n" +
                "                        \"parentId\": 1,\n" +
                "                        \"parentName\": null,\n" +
                "                        \"name\": \"系统日志\",\n" +
                "                        \"url\": \"sys/log\",\n" +
                "                        \"perms\": \"sys:log:page\",\n" +
                "                        \"type\": 1,\n" +
                "                        \"icon\": \"log\",\n" +
                "                        \"orderNum\": 7,\n" +
                "                        \"list\": null\n" +
                "                    }\n" +
                "                ]\n" +
                "            }\n" +
                "        ],\n" +
                "        \"authorities\": [\n" +
                "            \"prod:prodTag:delete\",\n" +
                "            \"prod:prod:update\",\n" +
                "            \"prod:spec:delete\",\n" +
                "            \"prod:prodComm:info\",\n" +
                "            \"admin:area:delete\",\n" +
                "            \"sys:config:save\",\n" +
                "            \"sys:config:update\",\n" +
                "            \"prod:prodTag:page\",\n" +
                "            \"admin:indexImg:delete\",\n" +
                "            \"admin:user:info\",\n" +
                "            \"order:order:pay\",\n" +
                "            \"prod:prodTag\",\n" +
                "            \"sys:user:page\",\n" +
                "            \"prod:category:info\",\n" +
                "            \"admin:hotSearch:update\",\n" +
                "            \"sys:menu:select\",\n" +
                "            \"shop:transport:update\",\n" +
                "            \"sys:config:page\",\n" +
                "            \"prod:prod:page\",\n" +
                "            \"admin:indexImg:info\",\n" +
                "            \"order:order:waitingConsignmentExcel\",\n" +
                "            \"prod:prod:save\",\n" +
                "            \"shop:notice:info\",\n" +
                "            \"admin:user:delete\",\n" +
                "            \"prod:prodComm:page\",\n" +
                "            \"sys:role:update\",\n" +
                "            \"prod:category:update\",\n" +
                "            \"sys:user:save\",\n" +
                "            \"order:order:info\",\n" +
                "            \"shop:shopDetail:info\",\n" +
                "            \"prod:prodTag:save\",\n" +
                "            \"sys:menu:update\",\n" +
                "            \"sys:menu:delete\",\n" +
                "            \"prod:category:save\",\n" +
                "            \"prod:spec:page\",\n" +
                "            \"admin:area:list\",\n" +
                "            \"sys:menu:list\",\n" +
                "            \"order:order:delete\",\n" +
                "            \"prod:prodComm:delete\",\n" +
                "            \"shop:pickAddr:save\",\n" +
                "            \"shop:pickAddr:delete\",\n" +
                "            \"admin:area:info\",\n" +
                "            \"sys:user:update\",\n" +
                "            \"sys:menu:info\",\n" +
                "            \"shop:pickAddr:update\",\n" +
                "            \"shop:transfee:delete\",\n" +
                "            \"shop:pickAddr:page\",\n" +
                "            \"prod:prodComm:save\",\n" +
                "            \"prod:spec:info\",\n" +
                "            \"sys:menu:save\",\n" +
                "            \"order:order:delivery\",\n" +
                "            \"prod:prodTag:info\",\n" +
                "            \"sys:log:page\",\n" +
                "            \"sys:config:delete\",\n" +
                "            \"sys:role:delete\",\n" +
                "            \"shop:pickAddr:info\",\n" +
                "            \"prod:category:page\",\n" +
                "            \"prod:prodTag:update\",\n" +
                "            \"prod:category:delete\",\n" +
                "            \"shop:transfee:info\",\n" +
                "            \"sys:role:page\",\n" +
                "            \"admin:hotSearch:delete\",\n" +
                "            \"shop:transport:page\",\n" +
                "            \"admin:area:save\",\n" +
                "            \"order:order:save\",\n" +
                "            \"admin:indexImg:update\",\n" +
                "            \"admin:user:update\",\n" +
                "            \"sys:role:list\",\n" +
                "            \"prod:prod:delete\",\n" +
                "            \"sys:role:save\",\n" +
                "            \"shop:transport:delete\",\n" +
                "            \"admin:hotSearch:page\",\n" +
                "            \"shop:notice:update\",\n" +
                "            \"admin:area:update\",\n" +
                "            \"prod:spec:save\",\n" +
                "            \"shop:transport:info\",\n" +
                "            \"admin:area:page\",\n" +
                "            \"admin:hotSearch:save\",\n" +
                "            \"order:order:update\",\n" +
                "            \"sys:config:info\",\n" +
                "            \"shop:notice:page\",\n" +
                "            \"admin:indexImg:save\",\n" +
                "            \"shop:transcity:info\",\n" +
                "            \"shop:transfee:save\",\n" +
                "            \"shop:transfee:update\",\n" +
                "            \"sys:user:delete\",\n" +
                "            \"prod:prodComm:update\",\n" +
                "            \"order:order:page\",\n" +
                "            \"admin:user:save\",\n" +
                "            \"sys:role:info\",\n" +
                "            \"order:order:soldExcel\",\n" +
                "            \"shop:transport:save\",\n" +
                "            \"shop:notice:delete\",\n" +
                "            \"sys:user:info\",\n" +
                "            \"shop:notice:save\",\n" +
                "            \"admin:user:page\",\n" +
                "            \"admin:indexImg:page\",\n" +
                "            \"user:addr:save\",\n" +
                "            \"prod:prod:info\",\n" +
                "            \"prod:spec:update\"\n" +
                "        ]\n" +
                "    },\n" +
                "    \"version\": \"mall4j.v230424\",\n" +
                "    \"timestamp\": null,\n" +
                "    \"sign\": null,\n" +
                "    \"success\": true,\n" +
                "    \"fail\": false\n" +
                "}";
    }
}
